import request from '@/router/axios';

// 查询列表信息
export const queryDictCompany = (params) => {
  return request({
    url: '/api/blade-public/dictUnit/list',
    method: 'post',
    data:params
  })
}

//编辑信息
export const editRowCompany = (data) => {
  return request({
    url: '/api/blade-public/dictUnit/edit',
    method: 'post',
    data
  })
}

//保存信息
export const saveRowCompany = (row) => {
  return request({
    url: '/api/blade-public/dictUnit/save',
    method: 'post',
    headers:{
      "Content-Type":"application/json"
    },
    data: JSON.stringify(row)
  })
}

// 删除信息
export const delRowCompany = (id) => {
  return request({
    url: '/api/blade-public/dictUnit/delete',
    method: 'post',
    params: {
      id
    }
  })
}
